I created the project in MVC5 web api for ionic mobile plateform and added several nuget package. I got this error code CS1705 and the below error description when I compiled the project.
Assembly 'System.Web.Http.Cors' with identity 'System.Web.Http.Cors, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' uses 'System.Web.Http, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Http' with identity 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
Solution:
We need to reference the same version as of System.Web.Http for System.Web.Http.Cors.
Run the following nuget package command in PM (Package Manager),
Install-Package Microsoft.AspNet.Cors -Version 5.2.3.0
After installing package my application smoothly.
Post your comments / questions
Recent Article
- How to create custom 404 error page in Django?
- Requested setting INSTALLED_APPS, but settings are not configured. You must either define..
- ValueError:All arrays must be of the same length - Python
- Check hostname requires server hostname - SOLVED
- How to restrict access to the page Access only for logged user in Django
- Migration admin.0001_initial is applied before its dependency admin.0001_initial on database default
- Add or change a related_name argument to the definition for 'auth.User.groups' or 'DriverUser.groups'. -Django ERROR
- Addition of two numbers in django python
Related Article